.class public Lcom/estrongs/android/pop/app/editor/f;
.super Lcom/estrongs/android/pop/app/editor/a;
.source "RootAccessFile.java"


# instance fields
.field private a:Ljava/io/File;

.field private b:Ljava/lang/String;

.field private c:Ljava/lang/Object;


# direct methods
.method public constructor <init>(Ljava/io/File;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/a;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->a:Ljava/io/File;

    .line 3
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->b:Ljava/lang/String;

    .line 4
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/f;->a:Ljava/io/File;

    .line 6
    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/f;->b:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public a([BII)I
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    if-nez v0, :cond_1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->k(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    if-eqz v0, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    new-instance p1, Ljava/io/IOException;

    const-string p2, "fail to open file."

    invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 4
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    invoke-static {v0, p1, p2, p3}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/Object;[BII)I

    move-result p1

    if-gtz p1, :cond_2

    const/4 p1, -0x1

    :cond_2
    return p1
.end method

.method public a()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    if-eqz v0, :cond_0

    .line 10
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/Object;)V

    const/4 v0, 0x0

    .line 11
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    :cond_0
    return-void
.end method

.method public a(J)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    if-nez v0, :cond_1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->k(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    if-eqz v0, :cond_0

    goto :goto_0

    .line 7
    :cond_0
    new-instance p1, Ljava/io/IOException;

    const-string p2, "fail to open file."

    invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 8
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    const/4 v1, 0x0

    invoke-static {v0, p1, p2, v1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/Object;JI)J

    return-void
.end method

.method public b()Z
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/lang/String;)Lcom/estrongs/fs/e;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 2
    iget-wide v0, v0, Lcom/estrongs/fs/e;->g:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-gtz v4, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    return v0

    :cond_1
    :goto_0
    const/4 v0, 0x0

    return v0
.end method

.method public c()J
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    if-nez v0, :cond_1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->k(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    if-eqz v0, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    new-instance v0, Ljava/io/IOException;

    const-string v1, "fail to open file."

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 4
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->c:Ljava/lang/Object;

    const-wide/16 v1, 0x0

    const/4 v3, 0x1

    invoke-static {v0, v1, v2, v3}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/Object;JI)J

    move-result-wide v0

    return-wide v0
.end method

.method public d()Ljava/io/InputStream;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->e(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    return-object v0
.end method

.method public e()J
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/lang/String;)Lcom/estrongs/fs/e;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    iget-wide v0, v0, Lcom/estrongs/fs/e;->d:J

    return-wide v0

    :cond_0
    const-wide/16 v0, -0x1

    return-wide v0
.end method

.method public f()Ljava/io/OutputStream;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->f(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v0

    return-object v0
.end method

.method public g()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/f;->b:Ljava/lang/String;

    return-object v0
.end method
